package com.campus.dao;

import com.campus.model.Activity;

import java.util.List;
import java.util.Optional;

public interface ActivityDao {
    int createActivity(Activity activity);
    int updateActivity(Activity activity);
    int publishActivity(int activityId);
    List<Activity> queryActivities(Integer status, String name, String orderBy);
    Optional<Activity> findById(int activityId);
    // 查询所有活动
    List<Activity> findAllActivities();
    boolean deleteActivity(int id);
}
